<template>
  <div class="wrapper">
    <el-dialog
      title="删除"
      :visible.sync="dialogVisible"
      width="300px"
      center
      :before-close="handleClose"
      :append-to-body="true">
      <p style="text-align: center;">确认删除？</p>
      <span slot="footer" class="dialog-footer">
        <el-button @click="handleClose">取 消</el-button>
        <el-button class="bt-color-tjd" type="primary" @click="isOk">确 定</el-button>
      </span>
    </el-dialog>
  </div>
</template>

<script>
export default {
  name: '',
  props: {
    dialogVisible: {
      type: Boolean,
      default: () => { return false }
    }
  },
  data () {
    return {
    }
  },
  methods: {
    handleClose () {
      this.$emit('isDelete', 'no')
    },
    isOk () {
      this.$emit('isDelete', 'ok')
    }
  }
}
</script>
<style lang="scss" scoped>
.wrapper {
  .el-dialog__body {
    text-align: center;
  }
}
</style>
